<?php
require_once 'Banks.php';
require_once 'Groups.php';
require_once 'Clients.php';
require_once 'Communities.php';
require_once 'Officers.php';

class Admin_BankController extends HTech_Controller_Action
{
    function init()
    {
        $cfg = array(
            'model' => 'Banks', 
            'form' => 'Emms_Form_Admin_Bank',
            'config' => array('add' => 'banks'),
            'redirect' => 'add',
            'flashMessenger' => true
        );
        parent::init($cfg);     
    }
            
    public function addAction()
    {
        parent::addAction();               
        $this->view->formTool = new Emms_Form_Admin_BankTool();
        $this->view->formTool->setDefaults(array('Group' => (int) $this->_request->getParam('group'),
            'Client' => (int) $this->_request->getParam('client')));
    }
}
